This Genie will save any settings in the current PDraw environment to a config file. Professional Draw will then always start up with your specified settings. (Example: Magnification, WireFrame, Interlace, etc...)
*/
msg = PDSetup.rexx(2,0)
units =getclip(pds_units)
if msg ~= 1 then exit_msg(msg)
cr = '0a'x
call pdm_SetBatchMode(1)
startprefs = "/*****Start Prefs*****/"
endprefs = "/*****End Prefs*****/"
startsave = "/*****StartSave*****/"
endsave = "/*****EndSave*******/"
startupfile = "s:pdraw.config"
pdcolors = "s:pdcolors.dflt"
startup = ''
clist = 0
selection = "Units"
selection = selection || cr"Grid Size"
selection = selection || cr"Grid"
selection = selection || cr"Ruler"
selection = selection || cr"Grid Snap"
selection = selection || cr"Ruler Type"
selection = selection || cr"Dither Mode"
selection = selection || cr"Fill Pattern"
selection = selection || cr"Interlace"
selection = selection || cr"Line Color"
selection = selection || cr"Line Pattern"
selection = selection || cr"Line Join"
selection = selection || cr"Line Weight"
selection = selection || cr"Color Mode"
selection = selection || cr"Quick Move"
selection = selection || cr"Wire Frame"
selection = selection || cr"Workbench"
counter = 1
if exists(startupfile) then
do
/* if exists then read file into line array and separate sections */
if ~open(file, startupfile, "r") then
call exit_msg("DOS error. Unable to create a configuration file.")
startup = startup"if ~show(l, 'rexxsupport.library') then"cr"if ~addlib('rexxsupport.library', 0, -30) then"cr"do"cr"call pdm_Inform(1,'You may need to install the rexxsupport.library in your libs: directory before running any Genies.',)"cr"end"cr
startup = startup"if ~show(l, 'gdarexxsupport.library') then"cr"if ~addlib('gdarexxsupport.library', 0, -30) then"cr"do"cr"call pdm_Inform(1,'You may need to install the gdarexxsupport.library in your libs: directory before running any Genies.',)"cr"end"
startup = startup || cr
end
if exists(startupfile) then
do
address command
'copy' startupfile startupfile".bak"
address
end
selection = compress(pdm_SelectFromList("Select Settings to Save", 20, 12, 1, selection))